package com.qiandw.service;

import com.qiandw.repo.SysResourceRepo;
import com.qiandw.repo.SysResourceRoleRepo;
import com.qiandw.repo.SysRoleRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.Map;

@Service("SecurityMetadataSourceService")
public class InvocationSecurityMetadataSourceService implements FilterInvocationSecurityMetadataSource {

    @Autowired
    private SysResourceRepo sysResourceRepo;

    @Autowired
    private SysResourceRoleRepo sysResourceRoleRepo;

    @Autowired
    private SysRoleRepo sysRoleRepo;

    private static Map<String, Collection<ConfigAttribute>> resourceMap = null;



    @Override
    public Collection<ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException {
        return null;
    }

    @Override
    public Collection<ConfigAttribute> getAllConfigAttributes() {
        return null;
    }

    @Override
    public boolean supports(Class<?> clazz) {
        return false;
    }
}
